var loginValidator;
var editor;

var modelObject = {
	init:function(){
		//--表单验证 start--
		loginValidator = $("#editUserForm").validate
		({
			rules: {
				credits:{
					required: true,
					number: true,
					min:0
				}
			},
			messages:{
				credits:{
					required:"请输入积分",
					number: "请输入数字",
					min:"积分不能为负"
				}
			},
		});
		//-- 表单验证 end --
	}
};

$(document).ready(function(){
	modelObject.init();
});